﻿using System.Collections.Generic;
using System.Windows.Forms;
using YaP.Library;

namespace YaP
{
    public class ChildDescriptor
    {
        private ChildArguments argumentField;
        private System.Windows.Forms.ToolStripItem buttonField;
        private string typeField;
        public List<IrcUser> userlistField;
        private System.Windows.Forms.Form windowField;

        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="_window">Child's Form</param>
        /// <param name="_button">Child's Button</param>
        /// <param name="_type">Child's Type : Channel, Private, Status, Channel List</param>
        /// <param name="_arguments">Extra Arguments, see herited class from ChildArguments</param>
        public ChildDescriptor(Form _window, ToolStripItem _button, string _type, ChildArguments _arguments)
        {
            windowField = _window;
            buttonField = _button;
            typeField = _type;
            argumentField = _arguments;
        }

        public Form Window
        {
            get { return windowField; }
        }

        public ToolStripItem Button
        {
            get { return buttonField; }
        }

        public string Type
        {
            get { return typeField; }
        }

        public ChildArguments Arguments
        {
            get { return argumentField; }
        }
    }
}